<script type="text/javascript">
    $(document).ready(function(){
        $("#horri_menu ul li:last,#district_infos").addClass("active");
    });
</script>
<h1>ตำบลต้นแบบ</h1>
<?php include "_menu.php";?>

<?php echo $districts->pagination()?>
<table class="list">
    <tr>
        <th width="70">แสดง</th>
        <th>หัวข้อ</th>
        <th width="90"><!-- <a class="btn" href="district_infos/admin/districts/form">เพิ่มรายการ</a> --></th>
    </tr>
    <?php foreach($districts as $district): ?>
    <tr <?php echo cycle()?>>
        <td><input type="checkbox" name="status" value="<?php echo $district->id ?>" <?php echo ($district->status=="approve")?'checked="checked"':'' ?> /></td>
        <td>
            <?php echo $district->title;?>
        </td>
        <td>
        	<?php if(permission('district_infos', 'update')):?>
            <a class="btn" href="district_infos/admin/districts/form/<?php echo $district->id?>" >แก้ไข</a>
            <?php endif;?>
           <!--  <a class="btn" href="district_infos/admin/districts/delete/<?php echo $district->id?>" onclick="return confirm('<?php echo lang('notice_confirm_delete');?>')">ลบ</a> -->
        </td>
        </tr>
        <?php endforeach; ?>
    </table>
<?php echo $districts->pagination()?>